
import java.util.ArrayList;
import java.util.Collections;

 class friends {
	public static void main(String[] felight){
	ArrayList<String> friends = new ArrayList<String>();
	friends.add("shilpa");
	friends.add("akshata");
	friends.add("roopa");
	friends.add("pooja");
	friends.add("anita");
	friends.add("jyoti");
	friends.add("soumya");
	friends.add("priyanka");
	System.out.println("Unsorted:" + friends);
	Collections.sort(friends);
	System.out.println("Sorted:" + friends);
	
	}
}
